#include "Base_I2C.h"
#include "i2c.h"

HAL_StatusTypeDef Base_I2C_WriteCmd(uint8_t* hi2cx, uint16_t Adr, uint8_t* TxData, uint8_t Len, uint16_t Timeout)
{
    return HAL_I2C_Master_Transmit((I2C_HandleTypeDef*)hi2cx, Adr, (uint8_t*)TxData, Len, Timeout);
}

HAL_StatusTypeDef Base_I2C_ReadCmd(uint8_t* hi2cx, uint16_t Adr, uint8_t* RxData, uint8_t Len, uint16_t Timeout)
{
    return HAL_I2C_Master_Receive((I2C_HandleTypeDef*)hi2cx, Adr, (uint8_t*)RxData, Len, Timeout);
}
